@echo off
echo === Building Enhanced DevOps Platform with VC++2005 ===

call "C:\Program Files (x86)\Microsoft Visual Studio 8\VC\vcvarsall.bat" x86

if not exist build mkdir build

echo Compiling enhanced main.cpp...
cl.exe /nologo /c /MT /O2 /DNDEBUG /Isrc /Fobuild\main_enhanced.obj src\main-enhanced.cpp

if %errorlevel% neq 0 (
    echo Compilation failed!
    exit /b 1
)

echo Linking enhanced executable...
link.exe /nologo /OUT:build\DevOpsPlatform-enhanced.exe build\main_enhanced.obj kernel32.lib user32.lib

if %errorlevel% equ 0 (
    echo Enhanced build successful!
    echo.
    build\DevOpsPlatform-enhanced.exe status
) else (
    echo Linking failed!
    exit /b 1
)
